package acoes;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import acoes.interfaces.Acao;

public class AcaoFormIncluirDisciplina extends Acao {
	public AcaoFormIncluirDisciplina(){
		super("formIncluirDisciplina");
	}
	
	@Override
	public void tratarRequisicao(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		ServletContext servletContext = request.getServletContext();
		RequestDispatcher dispatcher = servletContext.getRequestDispatcher("/WEB-INF/jsp/formIncluirDisciplina.jsp");
		dispatcher.forward(request,response);
	}

	@Override
	public Acao clone() {
		return new AcaoFormIncluirDisciplina();
	}
}
